<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="moneyTransferRecordList.title"/></title>
    <meta name="menu" content="AttachmentListMenu"/>
</head>

<script type="text/javascript">var batchexportMessage ="<fmt:message key="auditPrepayment.batch.message"/>";</script>

<!-- Content Header (Page header) -->
<section class="content-header">
    <h1>
        <fmt:message key="moneyTransferRecordList.heading"/>
        <small><p><fmt:message key="moneyTransferRecordList.message"/></p></small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i><fmt:message key="moneyTransferRecordList.heading"/></a></li>
        <li class="active"> <fmt:message key="moneyTransferRecordList.heading"/></li>
    </ol>
</section>
<!-- Main content -->
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <%@ include file="/common/messages.jsp" %>
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title"> <fmt:message key="moneyTransferRecordList.heading"/></h3>
                </div><!-- /.box-header -->
                <div class="box-body">
                    <form action="batchAuditPrepayment" method="get">
                    <display:table name="moneyTransferRecordList" class="table table-condensed table-striped table-hover" requestURI="" id="moneyTransferRecordList" export="false" pagesize="25">
                        <display:column titleKey="button.select" sortable="false" style="width: 3%;">
                            <input type="checkbox" name="selectedIds" value="<c:out value="${moneyTransferRecordList.id}"/>"/>
                        </display:column>
                        <display:column property="type" sortable="true" titleKey="moneyTransferRecord.type"></display:column>
                        <display:column property="amount" sortable="true" titleKey="moneyTransferRecord.amount"></display:column>
                        <display:column property="auditOperator" sortable="true" titleKey="moneyTransferRecord.auditOperator"></display:column>
                        <display:column property="generateDate" sortable="true" titleKey="moneyTransferRecord.generateDate">
                            <fmt:formatDate value="${moneyTransferRecordList.generateDate}" pattern="${datePattern}"/>
                        </display:column>
                        <display:column property="transferOperator" sortable="true" titleKey="moneyTransferRecord.transferOperator"></display:column>
                        <display:column property="transferDate" sortable="true" titleKey="moneyTransferRecord.transferDate">
                            <fmt:formatDate value="${moneyTransferRecordList.transferDate}" pattern="${datePattern}"/>
                        </display:column>

                        <display:column property="bank" sortable="true" titleKey="moneyTransferRecord.bank"></display:column>
                        <display:column property="bankAccount" sortable="true" titleKey="moneyTransferRecord.bankAccount"></display:column>
                        <display:column property="cardName" sortable="true" titleKey="moneyTransferRecord.cardName"></display:column>

                        <display:column property="serialNo" sortable="true" titleKey="prepayment.serialNo"></display:column>
                        <display:column property="memo" sortable="true" titleKey="moneyTransferRecord.memo"></display:column>

                    </display:table>
                        <%--<button type="submit" class="btn btn-primary" id="batchAudit" name="batchAudit" onclick="return checkBatch();">--%>
                            <%--<i class="icon-ok icon-white"></i> <fmt:message key="button.prepayment.audit"/>--%>
                        <%--</button>--%>
                    </form>
                </div><!-- /.box -->
            </div>
    </div>



</section><!-- /.content -->

<c:set var="scripts" scope="request">
    <script type='text/javascript' src="<c:url value='/dwr/interface/UserManager.js'/>"></script>
    <script type='text/javascript' src="<c:url value='/dwr/engine.js'/>"></script>
    <script type='text/javascript' src="<c:url value='/dwr/util.js'/>"></script>
<script type="text/javascript">
    $(function () {


    });

    function checkBatch() {
        var selectedIds = $("input[name='selectedIds']:checked").val();
        if (!selectedIds || selectedIds.length == 0) {
            alert(batchexportMessage);
            return false;
        } else {
            return true;
        }
    }

</script>
</c:set>
